package com.andy.blog.admin.controller;

import com.andy.blog.dal.vo.RegisterVO;
import com.andy.blog.admin.service.SysRegisterBusService;
import com.andy.blog.common.reponse.GeneralResponseResult;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 用户注册
 * Created by andy on 2023-04-05 11:38
 */
@RestController
public class SysRegisterController {

    @Resource
    private SysRegisterBusService registerService;

    /**
     * 注册
     */
    @PostMapping("/register")
    public GeneralResponseResult<String> register(@RequestBody RegisterVO registerVO) {
        registerService.register(registerVO);
        return GeneralResponseResult.success();
    }
}
